<template>
	<view class="dot-main">
		<view :class="['dot-item',current==index?'active':'']" v-for="(item,index) in list" :key="index"></view>
	</view>
</template>
<style>
	.dot-main {
		position: relative;
		z-index: 90;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
	}
	.dot-item {
		width: 16upx;
		height: 16upx;
		background-color: #E3E3E3;
		margin: 0 6upx;
		border-radius: 50%;
		box-sizing: border-box;
	}
	.active {
		width:16upx;
		height:16upx;
		border-radius: 50%;
		background-color: #FF5200;
		opacity: 1;
	}
</style>
<script>
	export default {
		props: {
			list: {
				type: Array,
				default() {
					return []
				}
			},
			current:{
				type: Number,
				default() {
					return 0
				}
			}
			},
		data() {
			return {
				
			};
		}
	}
</script>